package com.ruoyi.peach.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 识别记录对象 detection_record
 * 
 * @author ruoyi
 * @date 2025-05-28
 */
public class DetectionRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 百科id */
    @Excel(name = "百科id")
    private Long knowledgeId;
    /** 百科病虫害名称 */
    @Excel(name = "百科病虫害名称")
    private String knowledgeName;
    /** 百科图片地址 */
    @Excel(name = "百科图片地址")
    private String knowledgeImgUrls;



    /** 置信度 */
    @Excel(name = "置信度")
    private String confidence;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setKnowledgeId(Long knowledgeId) 
    {
        this.knowledgeId = knowledgeId;
    }

    public Long getKnowledgeId() 
    {
        return knowledgeId;
    }

    public void setConfidence(String confidence) 
    {
        this.confidence = confidence;
    }

    public String getConfidence() 
    {
        return confidence;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public String getKnowledgeName() {
        return knowledgeName;
    }

    public void setKnowledgeName(String knowledgeName) {
        this.knowledgeName = knowledgeName;
    }

    public String getKnowledgeImgUrls() {
        return knowledgeImgUrls;
    }

    public void setKnowledgeImgUrls(String knowledgeImgUrls) {
        this.knowledgeImgUrls = knowledgeImgUrls;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("knowledgeId", getKnowledgeId())
            .append("confidence", getConfidence())
            .append("createdAt", getCreatedAt())
            .toString();
    }
}
